<?php 

class Request extends APPObject
{
	function Request()
	{	
		global $app_request;		
	}
	function getCmd($name, $default = null, $method = null, $type = null)
	{
		global $app_request;
		if ($method)
		{
			if (isset($method[$name]))
				return $method[$name];
			return $default;
		}
			if (isset($app_request[$name]))
				return $app_request[$name];
			return $default;
	}
	function getVar($name, $default = null, $method = null, $type = null)
	{
		global $app_request;
		if ($method)
		{
			if (isset($method[$name]))
				return $method[$name];
			return $default;
		}

		if (isset($app_request[$name]))
			return $app_request[$name];
		return $default;
	}

	function getInt($name, $default = null, $method = null)
	{	
		global $app_request;
		if ($method)
		{
			if (isset($method[$name]))
				return intval($method[$name]);
			return intval($default);
		}

		if (isset($app_request[$name]))
			return intval($app_request[$name]);
		return intval($default);
	}
	
}



?>